import request from '@/utils/request'
// 获取区域列表
export function getOrzApi() {
    return request({
        url: '/mini/server/orz',
        method: 'get',
    })
}
// 添加区域列表
export function addOrzApi(data) {
    return request({
        url: '/mini/server/orz',
        method: 'post',
        data
    })
}
// 获取单一列表
export function getOneOrzApi(id) {
    return request({
        url: `/mini/server/orz/${id}`,
    })
}
// 修改单一列表
export function editOneOrzApi(id, data) {
    return request({
        url: `/mini/server/orz/${id}`,
        method: 'put',
        data
    })
}
// 删除单一列表
export function delOneOrzApi(id) {
    return request({
        url: `/mini/server/orz/${id}`,
        method: 'delete',
    })
}
//获取可关联设备
export function getOrzMeterApi(orzId, pageNum, pageSize) {
    return request({
        url: `/mini/server/orz/device`,
        params: {
            orzId,
            pageNum,
            pageSize
        }
    })
}
//关联设备
export function contactOrzMeterApi(data) {
    return request({
        url: `/mini/server/orz/device`,
        method: 'post',
        data
    })
}